<template>
  <div class="page">
    <div class="header">
      <img
        src="@/assets/imgs/middleWork/logo.png"
        class="logo"
        @click="goMiddleWork"
      />
      <headerNav></headerNav>
    </div>
    <div class="layout">
      <router-view />
    </div>
  </div>
</template>

<script>
import headerNav from "../../layout/headerNav.vue";
// import RegisterDialogVue from "./registerDialog.vue";
export default {
  name: "middleWorkLayout",
  components: {
    headerNav,
    // RegisterDialogVue
  },
  data() {
    return {
      // value1: false,
      // dialogVisible: true
    };
  },
  methods: {
    goMiddleWork() {
      this.$router.push("/middleWork");
    },
    // showMerchant() {
    //     this.$store.commit('changeMenuType', 1)
    //     this.$store.commit('changePath', '1')
    //     this.$router.push('/workbench')
    // }
  },
 
};
</script>

<style scoped lang="scss">
.page {
  min-height: 100vh;
  background: #f9f9f9;
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);
    padding: 0 44px;
    border-bottom: 1px solid #eee;
    .logo {
      width: 140px;
      cursor: pointer;
    }
  }
  .layout {
    position: relative;
    min-height: calc(100vh - 55px);
  }
}
</style>